package com.example.spd;

import com.example.spd.controller.SPD2taobaoController;
import com.example.spd.service.taobaoUrl.TaobaoUrlService;
import com.example.spd.service.taobaoUrl.TaobaoUrlServiceImpl;
import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlibabaAlihealthDrugtraceTopYljgQueryCodedetailRequest;
import com.taobao.api.response.AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@SpringBootApplication
public class SpdMpApplication {
	static TaobaoUrlService TaobaoUrlService = new TaobaoUrlServiceImpl();

	public static void main(String[] args) {
		SpringApplication.run(SpdMpApplication.class,args);
		System.out.println("\n----------------------------------------------------------\n");
		System.out.println("启动成功");
		// 多个追溯码测试
//		TaobaoUrlService.upbillcode("83816282879730873802,83816282879596227375,83816282879688591594,83816282884416095261,");
		// 单个追溯码测试
		TaobaoUrlService.upbillcode("88134380000296484253");

		System.out.println("\n----------------------------------------------------------\n");
//		TaobaoUrlService.upbillcode("87938070006125151955");
	}
}